#ifndef RCMAEMO5SETTINGSGUI_H
#define RCMAEMO5SETTINGSGUI_H

class QFileInfo;
#include <QList>
#include <QString>
#include <QWidget>

namespace Ui {
    class RcMaemo5SettingsGui;
}

class RcMaemo5SettingsGui : public QWidget {
    Q_OBJECT


public:
    RcMaemo5SettingsGui(const QList<QString> & licences,
                        const QString        & app,
                        QWidget              * parent = 0);
    ~RcMaemo5SettingsGui();

    /**
      * Uses "Settings" class to persist settings. It does not check
      * for sanity of those, only persists them.
      */
    void saveSettings() const;

protected:
    void changeEvent(QEvent *e);

private slots:
    void openNetworkSettings();
    void browseForLog();
    void editLongDesc();


private:
    QFileInfo getFileInfo(QString fileName);

    // OBS friend class Maemo5QtProjectGenerator;

private:
    Ui::RcMaemo5SettingsGui *ui;
    const QString            m_app;
};

#endif // RCMAEMO5SETTINGSGUI_H
